#!/usr/bin/python
#coding:utf-8

if __name__ == "__main__":
    def Usage():
        print """
        ./signature.py product_secret now_Timestamp( date +%s )
        """
    import sys, os, pdb, hashlib
    if len(sys.argv)==1: Usage(), sys.exit()
    product_secret = sys.argv[1]
    Timestamp = sys.argv[2]
    r = hashlib.md5(product_secret + Timestamp).digest()
    print r.encode('hex')
